
export const getJson = (jsonStr) => {
  try {
    const searchJsonArr = /\{.*\}/.exec(jsonStr)
    return searchJsonArr.length > 0 ? JSON.parse(searchJsonArr[0]) : null;
  } catch(e) {
    return null;
  }
}